package com.niguang.work.labour.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 'work.v_personSite' is not BASE TABLE
 * </p>
 *
 * @author 83673
 * @since 2018-11-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("work_wechat_user")
public class WechatUser extends Model<WechatUser> {

    public static final String ID = "id";
    public static final String USER_PHONE = "user_phone";
    public static final String USER_NAME = "user_name";
    public static final String USER_ID = "user_id";
    public static final String OPEN_ID = "open_id";
    public static final String UNION_ID = "union_id";
    public static final String WECHAT_PIC = "wechat_pic";
    public static final String WECHAT_NICK = "wechat_nick";
    public static final String DEL_FLAG = "del_flag";
    public static final String CREATE_TIME = "create_time";
    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
        /**
     * 电话号码
     */
         private String userPhone;
        /**
     * 用户姓名
     */
         private String userName;
        /**
     * 用户ID
     */
         private Long userId;
        /**
     * 微信ID
     */
         private String openId;
    private String unionId;
        /**
     * 微信头像
     */
         private String wechatPic;
        /**
     * 微信昵称
     */
         private String wechatNick;
    private Integer delFlag;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
